package com.sairobo.admin.modules.srblive.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sairobo.base.common.entity.BaseEntityAutoKey;
import com.sairobo.base.common.support.HtmlUnEscapeDeSerializer;
import com.sairobo.base.common.support.ThumbnailDeSerializer;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 课题
 *
 * @author admin
 * @email sairobo
 * @url www.sairobo.com
 * @date 2018年1月11日 上午11:01:21
 */
@TableName("srblive_classroom")
public class SrbliveClassroom extends BaseEntityAutoKey<Long> implements Serializable {
	
	private static final long serialVersionUID = 1L;

    @TableField("type")
    private Integer type;/* 课题类型 */
    @TableField("liveType")
    private Integer livetype;/* 直播类型 */
    @TableField("title")
    private String title;/* 课题标题 */
    @TableField("moneyType")
    private Integer moneytype;/* 课题费用类型，0为免费，1为付费，2为加密 */
    @TableField("beginTime")
    private Date begintime;/* 课题开始时间 */
    @TableField("openId")
    private String openid;/* 课程拥有者ID */
    @TableField("content")
    @JsonDeserialize(using = HtmlUnEscapeDeSerializer.class)
    private String content;/* 课题内容 */
    @TableField("classroomId")
    private String classroomid;/* 课题ID */
    @TableField("password")
    private String password;/* 加密课密码 */
    @TableField("price")
    private BigDecimal price;/* 付费课费用 */
    @TableField("active")
    private Integer active;/* 是否处理活跃状态，可下架 */
    @TableField("goldList")
    private String goldlist;/* 打赏金币列表 */
    @TableField("status")
    private Integer status;/* 课程状态: 1为正常,0为课程结束 */
    @TableField("guest")
    private String guest;/* 嘉宾ID串 */
    @TableField("pptPath")
    private String pptpath;/* PPT存放路径 */
    @TableField("liveParentType")
    private Integer liveparenttype;/* 直播间父类型 */
    @TableField("hasComment")
    private Integer hascomment;/* 是否开启评论 */
    @TableField("hasTip")
    private Integer hastip;/* 是否支持打赏 */
    @TableField("imageUrl")
    @JsonDeserialize(using = ThumbnailDeSerializer.class)
    private String imageurl="";/* 封面图片 */
//    private String imageurl;/* 封面图片 */
    @TableField("subTitle")
    private String subtitle;/* 副标题 */

    @TableLogic
    @TableField("isDelete")
    private Integer delFlag;/* 默认为0,删除为1 */


	public SrbliveClassroom() {
		super();
	}

	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getType() {
		return type;
	}
	public void setLivetype(Integer livetype) {
		this.livetype = livetype;
	}
	public Integer getLivetype() {
		return livetype;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTitle() {
		return title;
	}
	public void setMoneytype(Integer moneytype) {
		this.moneytype = moneytype;
	}
	public Integer getMoneytype() {
		return moneytype;
	}
	public void setBegintime(Date begintime) {
		this.begintime = begintime;
	}
	public Date getBegintime() {
		return begintime;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getOpenid() {
		return openid;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getContent() {
		return content;
	}
	public void setClassroomid(String classroomid) {
		this.classroomid = classroomid;
	}
	public String getClassroomid() {
		return classroomid;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword() {
		return password;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setActive(Integer active) {
		this.active = active;
	}
	public Integer getActive() {
		return active;
	}
	public void setGoldlist(String goldlist) {
		this.goldlist = goldlist;
	}
	public String getGoldlist() {
		return goldlist;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getStatus() {
		return status;
	}
	public void setGuest(String guest) {
		this.guest = guest;
	}
	public String getGuest() {
		return guest;
	}
	public void setPptpath(String pptpath) {
		this.pptpath = pptpath;
	}
	public String getPptpath() {
		return pptpath;
	}
	public void setLiveparenttype(Integer liveparenttype) {
		this.liveparenttype = liveparenttype;
	}
	public Integer getLiveparenttype() {
		return liveparenttype;
	}
	public void setHascomment(Integer hascomment) {
		this.hascomment = hascomment;
	}
	public Integer getHascomment() {
		return hascomment;
	}
	public void setHastip(Integer hastip) {
		this.hastip = hastip;
	}
	public Integer getHastip() {
		return hastip;
	}
	public void setImageurl(String imageurl) {
		this.imageurl = imageurl;
	}
	public String getImageurl() {
		return imageurl;
	}
	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}
	public String getSubtitle() {
		return subtitle;
	}
    public Integer getDelFlag() {
        return delFlag;
    }
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
}
